helpstring("Fill to the nearest clrref border with current brush starting at x,y"),
]
BOOL WINAPI FloodFill(HDC hdc,
int nXStart, int nYStart,
COLORREF clrref);
[
usesgetlasterror,
entry("FrameRgn"),
helpstring("Draws a border around the specified region by using the specified brush"),
]
BOOL WINAPI FrameRgn(HDC hdc,
HRGN hrgn,
HBRUSH hbr,
int nWidth,
int nHeight);
[
usesgetlasterror,
entry("GetROP2"),
helpstring("Retrieves the foreground mix mode (which specifies how the pen or interior color and the color already on the screen are combined to yield a new color) of the specified device context"),
]
int WINAPI GetROP2(HDC hdc);
[
usesgetlasterror,
entry("GetAspectRatioFilterEx"),
helpstring("Retrieves the current aspect-ratio filter"),
]
BOOL WINAPI GetAspectRatioFilterEx(HDC hdc,
SIZE * lpAspectRatio);
[
usesgetlasterror,
entry("GetBkColor"),
helpstring("Get the background color of a DC"),
]
COLORREF WINAPI GetBkColor(HDC hdc);
[
usesgetlasterror,
entry("GetBkMode"),
helpstring("Get the background mode of a DC"),
]
int WINAPI GetBkMode(HDC hdc);
[
usesgetlasterror,
entry("GetBitmapBits"),
helpstring("Fills buffer with bits from the specified bitmap"),
]
LONG WINAPI GetBitmapBits(HBITMAP hbm,
LONG cbBuffer,
BYTE * lpvBits);
[
usesgetlasterror,
entry("GetBitmapDimensionEx"),
helpstring("Retrieves the dimensions of a bitmap"),
]
BOOL WINAPI GetBitmapDimensionEx(HBITMAP hbm,
SIZE * lpDimension);
[
usesgetlasterror,
entry("GetBoundsRect"),
helpstring("Obtains the current accumulated bounding rectangle for a specified device context"),
]
UINT WINAPI GetBoundsRect(HDC hdc,
RECT * lprc,
UINT flags);
[
usesgetlasterror,
entry("GetBrushOrgEx"),
helpstring("Retrieves the current brush origin for the specified device context"),
helpstring("Returns the handle of stock pen, brush or font specified by fnObject constant"),
]
HGDIOBJ WINAPI GetStockObject(int fnObject);
[
usesgetlasterror,
entry("GetStretchBltMode"),
helpstring("Gets the mode for compressing blits (see STRETCH_ANDSCANS)"),
]
int WINAPI GetStretchBltMode(HDC hdc);
[
usesgetlasterror,
entry("GetSystemPaletteEntries"),
helpstring("Retrieves range of palette entries from the system palette associated with the specified device context"),
]
UINT WINAPI GetSystemPaletteEntries(HDC hdc,
UINT iStartIndex,
UINT nEntries,
LPPALETTEENTRY lppe);
[
usesgetlasterror,
entry("GetSystemPaletteUse"),
helpstring("Retrieves current state of the system (physical) palette for the specified device context (SYSPAL_NOSTATIC, SYSPAL_STATIC, or SYSPAL_ERROR)"),
]
UINT WINAPI GetSystemPaletteUse(HDC hdc);
/*
[
usesgetlasterror,
entry("GetTextCharacterExtra"),
helpstring(""),
]
int WINAPI GetTextCharacterExtra(HDC hdc);
[
usesgetlasterror,
entry("GetTextAlign"),
helpstring(""),
]
UINT WINAPI GetTextAlign(HDC hdc);
*/
[
usesgetlasterror,
entry("GetTextColor"),
helpstring("Gets the text (foreground) color of a DC"),
]
COLORREF WINAPI GetTextColor(HDC hdc);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetTextExtentPointW"),
#else
entry("GetTextExtentPointA"),
#endif
helpstring("Computes the width and height of the specified string of text"),
helpstring("Retrieves the number of characters in a specified string that will fit within a specified space and fills an array with the text extent for each of those characters"),
helpstring("Maps palette entries from the current logical palette to the system palette"),
]
UINT WINAPI RealizePalette(HDC hdc);
/*
[
usesgetlasterror,
#ifdef UNICODE
entry("RemoveFontResourceW"),
#else
entry("RemoveFontResourceA"),
#endif
helpstring(""),
]
BOOL WINAPI RemoveFontResource(LPCTSTR);
*/
[
usesgetlasterror,
entry("RoundRect"),
helpstring("Draws rounded rectangle around given points with current pen and filled with current brush, using ellipse of (nWidth, nHeight) on corners"),
]
BOOL WINAPI RoundRect(HDC hdc,
int nLeft, int nTop,
int nRight, int nBottom,
int nWidth, int nHeight);
[
usesgetlasterror,
entry("ResizePalette"),
helpstring("Increases or decreases the size of a logical palette based on the specified value"),
helpstring("Gets version numbers of Windows and MS-DOS"),
]
LONG WINAPI SetBitmapBits(HBITMAP hbm, LONG cbBuffer, BYTE * lpvBits);
[
usesgetlasterror,
entry("SetBoundsRect"),
helpstring("Controls the accumulation of bounding rectangle information for the specified device context"),
]
UINT WINAPI SetBoundsRect(HDC hdc, RECT * lprc, UINT);
[
usesgetlasterror,
entry("SetDIBits"),
helpstring("Sets the pixels in a bitmap using the color data found in the specified device-independent bitmap (DIB)"),
]
int WINAPI SetDIBits(HDC hdc,
HBITMAP hbmp,
UINT uStartScan,
UINT cScanLines,
LPVOID lpvBits,
LPVOID lpbmi,
UINT fuColorUse);
[
usesgetlasterror,
entry("SetDIBitsToDevice"),
helpstring("Sets the pixels in the specified rectangle on the device that is associated with the destination device context using color data from a device-independent bitmap (DIB)"),
]
int WINAPI SetDIBitsToDevice(HDC hdc,
int XDest,
int YDest,
DWORD dwWidth,
DWORD dwHeight,
int XSrc,
int YSrc,
UINT uStartScan,
UINT cScanLines,
LPVOID lpvBits,
LPVOID lpbmi,
UINT fuColorUse);
/*
[
usesgetlasterror,
entry("SetMapperFlags"),
helpstring(""),
]
DWORD WINAPI SetMapperFlags(HDC hdc, DWORD);
[
usesgetlasterror,
entry("SetGraphicsMode"),
helpstring(""),
]
int WINAPI SetGraphicsMode(HDC hdc, int iMode);
[
usesgetlasterror,
entry("SetMapMode"),
helpstring(""),
]
int WINAPI SetMapMode(HDC hdc, int);
*/
[
usesgetlasterror,
entry("SetMetaFileBitsEx"),
helpstring("Creates a metafile from global memory"),
helpstring("Creates a device-independent bitmap (DIB) that applications can write to directly"),
]
HBITMAP WINAPI CreateDIBSection(HDC hdc,
LPVOID pbmi,
UINT iUsage,
VOID *ppvBits,
HANDLE hSection,
DWORD dwOffset);
[
usesgetlasterror,
entry("GetDIBColorTable"),
helpstring("Retrieves RGB (red, green, blue) color values from a range of entries in the color table of the DIB section bitmap that is currently selected into a specified device context"),
]
UINT WINAPI GetDIBColorTable(HDC hdc,
UINT uStartIndex,
UINT cEntries,
RGBQUAD * pColors);
[
usesgetlasterror,
entry("SetDIBColorTable"),
helpstring("Sets RGB (red, green, blue) color values in a range of entries in the color table of the device-independent bitmap (DIB) that is currently selected into a specified device context"),
]
UINT WINAPI SetDIBColorTable(HDC hdc,
UINT uStartIndex,
UINT cEntries,
RGBQUAD * pColors);
// Flags value for COLORADJUSTMENT
const UINT CA_NEGATIVE = 0x0001;
const UINT CA_LOG_FILTER = 0x0002;
// IlluminantIndex values
const int ILLUMINANT_DEVICE_DEFAULT = 0;
const int ILLUMINANT_A = 1;
const int ILLUMINANT_B = 2;
const int ILLUMINANT_C = 3;
const int ILLUMINANT_D50 = 4;
const int ILLUMINANT_D55 = 5;
const int ILLUMINANT_D65 = 6;
const int ILLUMINANT_D75 = 7;
const int ILLUMINANT_F2 = 8;
const int ILLUMINANT_MAX_INDEX = 8; // ILLUMINANT_F2
const int ILLUMINANT_TUNGSTEN = 1; // ILLUMINANT_A
const int ILLUMINANT_DAYLIGHT = 3; // ILLUMINANT_C
const int ILLUMINANT_FLUORESCENT = 8; // ILLUMINANT_F2
const int ILLUMINANT_NTSC = 3; // ILLUMINANT_C
// Min and max for RedGamma, GreenGamma, BlueGamma
const UINT RGB_GAMMA_MIN = 02500;
const UINT RGB_GAMMA_MAX = 65000;
// Min and max for ReferenceBlack and ReferenceWhite
const UINT REFERENCE_WHITE_MIN = 6000;
const UINT REFERENCE_WHITE_MAX = 10000;
const UINT REFERENCE_BLACK_MIN = 0;
const UINT REFERENCE_BLACK_MAX = 4000;
// Min and max for Contrast, Brightness, Colorfulness, RedGreenTint
helpstring("Gets the drawing direction used for arc and rectangle functions (AD_COUNTERCLOCKWISE or AD_CLOCKWISE)"),
]
int WINAPI GetArcDirection(HDC hDC);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a graphics object into a buffer (BITMAP, DIBSECTION, EXTLOGPEN, LOGBRUSH, LOGFONT, LOGPEN, or count of table entries"),
]
int WINAPI VBGetObject(HGDIOBJ hgdiobj, int cbBuffer, void * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a bitmap into a BITMAP variable"),
]
int WINAPI GetObjectBitmap(HGDIOBJ hgdiobj, int cbBuffer, BITMAP * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a DIB into a DIBSECTION variable"),
]
int WINAPI GetObjectDIBSection(HGDIOBJ hgdiobj, int cbBuffer, DIBSECTION * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a logical pen into a EXTLOGPEN variable"),
]
int WINAPI GetObjectPenEx(HGDIOBJ hgdiobj, int cbBuffer, EXTLOGPEN * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a logical brush into a LOGBRUSH variable"),
]
int WINAPI GetObjectBrush(HGDIOBJ hgdiobj, int cbBuffer, LOGBRUSH * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a logical font into a LOGFONT variable"),
]
int WINAPI GetObjectFont(HGDIOBJ hgdiobj, int cbBuffer, LOGFONT * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a logical pen into a LOGPEN variable"),
]
int WINAPI GetObjectPen(HGDIOBJ hgdiobj, int cbBuffer, LOGPEN * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets a count of palette entries for a logical palette into a variable"),
]
int WINAPI GetObjectPaletteEntries(HGDIOBJ hgdiobj, int cbBuffer, WORD * lpvObject);
[
usesgetlasterror,
#ifdef UNICODE
entry("GetObjectW"),
#else
entry("GetObjectA"),
#endif
helpstring("Gets information about a logical brush into a LOGFONT, LOGPEN, count of table entries (for a logical palette), into a specified buff variable"),
]
int WINAPI GetObjectLogBrush(HGDIOBJ hgdiobj, int cbBuffer, LOGBRUSH * lpvObject);
[
usesgetlasterror,
entry("MoveToEx"),
helpstring("Moves current position to (x,y) without displaying; return last position in POINTL * lpPoint"),
]
BOOL WINAPI MoveToEx(HDC hdc, int X, int Y, [defaultvalue(0)] LPVOID lpPoint);
[
usesgetlasterror,
entry("MoveToEx"),
helpstring("Moves current position to (x,y) without displaying (ignore compatibility null parameter)"),
]
BOOL WINAPI MoveTo(HDC hdc, int X, int Y, [defaultvalue(0)] LPVOID lpNull);
[
usesgetlasterror,
#ifdef UNICODE
entry("TextOutW"),
#else
entry("TextOutA"),
#endif
helpstring("Writes a character string at the specified location, using the currently selected font"),
]
BOOL WINAPI TextOut(HDC hdc, int nXStart, int nYStart,
LPCTSTR lpString, int cbString);
[
usesgetlasterror,
#ifdef UNICODE
entry("ExtTextOutW"),
#else
entry("ExtTextOutA"),
#endif
helpstring("Draws a character string, optionally using a rectangle to specify clipping, opaquing, or both"),
]
BOOL WINAPI ExtTextOut(HDC hdc, int X, int Y,
UINT fuOptions, RECT *lprc,
LPCTSTR lpString, UINT cbCount,
INT * lpDx);
/*
[
usesgetlasterror,
#ifdef UNICODE
entry("PolyTextOutW"),
#else
entry("PolyTextOutA"),
#endif
helpstring("Draws several strings using the font and text colors currently selected in the specified device context"),